/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const orderRouter = {
  path: '/order',
  component: Layout,
  name: '销售管理',
  meta: {
    title: '销售管理',
    subtitle:'销售',
    icon: 'menu-sales'
  },
  children: [
    {
      path: '/order/list',
      component: () => import('@/views/order/list'),
      name: 'order-list',
      meta: { title: '销售订单',subtitle:'销售', icon: 'menu-sales', permissions: ['order.query'] }
    },
    {
      path: '/order/add',
      component: () => import('@/views/order/add'),
      name: 'order-add',
      meta: { title: '新增订单', icon: 'menu-sales' },
      hidden: true
    },
    {
      path: '/order/edit',
      component: () => import('@/views/order/edit'),
      name: 'order-edit',
      meta: { title: '修改订单', icon: 'menu-sales' },
      hidden: true
    },
    {
      path: '/order/view',
      component: () => import('@/views/order/view'),
      name: 'order-view',
      meta: { title: '订单详情', icon: 'menu-sales' },
      hidden: true
    },
    {
      path: '/askfor/list',
      component: () => import('@/views/askfor/list'),
      name: 'askfor-list',
      meta: { title: '退款售后',subtitle:'售后', icon: 'menu_askfor', permissions: ['askfor.query'] }
    },
    {
      path: '/askfor/view',
      component: () => import('@/views/askfor/view'),
      name: 'askfor-view',
      meta: { title: '退款详情', icon: 'menu_askfor', permissions: ['askfor-list'] },
      hidden: true
    },
  ]
}
export default orderRouter
